import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect:'/index',
    // name: "login",
    // component: () => import("../views/login.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/index",
    name: "index",
    component: () => import("../views/index.vue"),
    meta: {
      showFooter: true
    }

  },
  {
    path: "/wraningList",
    name: "warnlist",
    component: () => import("../views/warningList.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/mapDistribution",
    name: "mapdistribution",
    component: () => import("../views/mapDistribute.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/searchList",
    name: "searchList",
    component: () => import("../views/fuzzySearch.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/historyRecord",
    name: "historicalRecord",
    component: () => import("../views/historlcalRecord.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/warnfeedback",
    name: "feedback",
    component: () => import("../views/warningFeedback.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/warnfeedbackresult",
    name: "feedbackresult",
    component: () => import("../views/warningFeedbackResult.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/warndisposal",
    name: "disposal",
    component: () => import("../views/warningDisposal.vue"),
    meta: {
      showFooter: false
    }
  },
  // 横向监测曲线
  {
    path: "/horizontalCurve",
    name: "horizontalCurve",
    component: () => import("../views/monitorCurveTransverse.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/personamCenter",
    name: "personamCenter",
    component: () => import("../views/personamCenter.vue"),
    meta: {
      showFooter: true
    }
  },
  {
    path: "/changeUserName",
    name: "changeUserName",
    component: () => import("../views/changeUserName.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/changePassword",
    name: "changePassword",
    component: () => import("../views/changePassword.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/showAbort",
    name: "showAbort",
    component: () => import("../views/showAbort.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/hiddenDangerManager",
    name: "hiddenDangerManager",
    component: () => import("../views/hiddenDangerManager.vue"),
    meta: {
      showFooter: true
    }
  },
  {
    path: "/analyseReport",
    name: "analyseReport",
    component: () => import("../views/analyseReport.vue"),
    meta: {
      showFooter: true
    }
  },
  {
    path: "/warningDisposalResult",
    name: "warningDisposalResult",
    component: () => import("../views/warningDisposalResult.vue"),
    meta: {
      showFooter: false
    }
  },
  ,
  {
    path: "/pdfview",
    name: "pdfView",
    component: () => import("../views/pdfview.vue"),
    meta: {
      showFooter: false
    }
  },
  {
    path: "/warningProcess",
    name: "warningProcess",
    component: () => import("../views/warningProcess.vue"),
    meta: {
      showFooter: false
    }
  }
];

const router = new VueRouter({
  mode: "hash",
  base: process.env.BASE_URL,
  routes
});

export default router;
